//------奖金测算 数据 机构考核结果--//------
import request from "@/router/axios";

export function fetchList(query) {
  return request({
    url: '/bonus/bonusdeptpenalty/page',
    method: 'get',
    params: query
  })
}

//新增
export function addObj(obj) {
  return request({
    url: '/bonus/bonusdeptpenalty',
    method: 'post',
    data: obj
  })
}

//编辑
export function putObj(obj) {
  return request({
    url: '/bonus/bonusdeptpenalty',
    method: 'put',
    data: obj
  })
}



export function delBatch(ids) {
  return request({
    url: '/bonus/bonusdeptpenalty/deleteBatch',
    method: 'get',
    params: ids
  })
}

//----------分配----------
export function fetchListUser(query) {
  return request({
    url: '/bonus/bonusperson/list',
    method: 'get',
    params: query
  })
}


export function fetchListUserDivided(query) {
  return request({
    url: '/bonus/bonuspersonpenalty/list',
    method: 'get',
    params: query
  })
}


//批量保存
export function saveUserList(obj) {
  return request({
    url: '/bonus/bonuspersonpenalty/savelist',
    method: 'post',
    data: obj
  })
}

//类别下拉选列表
export function getLbSelect(query) {
  return request({
    url: '/appr-event/rckhsjyjk/getSjyjk/',
    method: 'get',
    params: query
  })
}
